const mongoose = require("mongoose");
const Schema = mongoose.Schema;

const materialSchema = new mongoose.Schema({
  //类别
  category: {
    type: String,
    required: [true, "you must tell us your  material category"],
  },
  //型号
  types: {
    type: Array,
    required: [true, "you must tell us your material types"],
  },
});

const Material = mongoose.model("Material", materialSchema);
module.exports = Material;
